package com.kuang.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;


@SpringBootApplication(exclude={DataSourceAutoConfiguration.class}) //exclude={DataSourceAutoConfiguration.class}被这个折磨了三个小时,加上这个能避免自动注入数据源,不加可能会发生找不到数据字段的类型
@EnableEurekaServer//@EnableEurekaServer 服务端的启动类,可以接受别人注册进来
public class EurekaServer_7001 {
    public static void main(String[] args) {
        SpringApplication.run(EurekaServer_7001.class,args);
    }
}
